package com.ytjj.qmyx.admin.eunm;

import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description TODO
 * @ClassName HotelEnums
 * 
 *
 * @Version 1.0
 **/
@Getter
public enum HotelEnums {

    /**
     * 无活动栏目商品
     */
    COMMON("COMMON", "普通")
    ;

    /**
     * 酒店商品栏目分类
     */
    private String hotelActivityType;

    private String hotelActivityName;


    HotelEnums(String hotelActivityType, String hotelActivityName) {
        this.hotelActivityType = hotelActivityType;
        this.hotelActivityName = hotelActivityName;
    }

    /**
     * @Description 获取栏目名称
     *
     * 
     *
     * @Version 1.0
     **/
    public static List<String> getHotelActivityType() {
        HotelEnums[] values = HotelEnums.values();
        List<String> hotelActivityTypes = new ArrayList<>();
        for (HotelEnums value : values) {
            hotelActivityTypes.add(value.name());
        }
        return hotelActivityTypes;
    }


    /**
     * @Description 获取酒店商品活动名称
     *
     * 
     *
     * @Version 1.0
     **/
    public static String getHotelTypeName(String hotelActivityType) {
        HotelEnums[] values = HotelEnums.values();
        for (HotelEnums value : values) {
            if(value.hotelActivityType.equals(hotelActivityType)) {
                return value.getHotelActivityName();
            }
        }
        return "";
    }
}
